home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
d
/
devioustools19.dms
/
devioustools19.adf
/
utils
/
004.lzx
/
clidt
/
Misc
/
sasc.mk
< prev
Wrap
Text File
|
1978-01-22
|
2KB
|
97 lines
#
# $PROJECT: Include Makefiles
#
# $VER: sasc.mk 0.1 (21.07.95)
#
# by
#
# Stefan Ruppert , Windthorststrasse 5 , 65439 Floersheim , GERMANY
#
# (C) Copyright 1995
# All Rights Reserved !
#
# $HISTORY:
#
# 21.07.95 : 000.001 : initial
#
##############################################################################
#
# command to use including path
#
SC = sc:c/sc
MV = c:move
MKPROTO = c:swtools/mkproto
CI = ci
CO = co
MKDIR = mkdir
##############################################################################
#
# GNUMake SAS-C pattern rules
#
# These rules compiles every c and assembler source and puts the output to
# the OBJDIR directory
#
$(OBJDIR)/%.o: %.asm
$(SC) $(SCOPTS) $(DEBUG) $(SCOPTIMIZE) ASM $< OBJNAME $(subst /objs/,objs:,$@)
$(OBJDIR)/%.o: %.cc
$(SC) $(SCOPTS) $(DEBUG) $(SCOPTIMIZE) CXXSRC $< OBJNAME t:
$(MV) t:$(@F) $(subst /objs/,objs:,$@)
$(OBJDIR)/%.o: %.c
$(SC) $(SCOPTS) $(DEBUG) $(SCOPTIMIZE) $(GSTOPTS) CSRC $< OBJNAME t:
$(MV) t:$(@F) $(subst /objs/,objs:,$@)
##############################################################################
#
# make SAS-C GST file
#
$(GST): $(GSTINC)
$(SC) MGST $(subst /objs/,objs:,$(GST)) $(GSTINC) $(INCDIRS) NOOBJNAME
##############################################################################
#
# make prototypes
#
protos: $(PROTOS)
$(PROTOS): $(SRCS)
$(MKPROTO) $(SRCS) TO $(PROTOS)
##############################################################################
#
# generate pragmas out of fd files
#
$(LIBPRAGMA): $(LIBFD) $(LIBPROTOS)
pragma_gen $(subst ..,,$(LIBFD)) $(subst ..,,$(LIBPRAGMA)) $(subst ..,,$(LIBPROTOS))
##############################################################################
#
# rcs entry points
#
checkin:
$(CI) -I -r$(VERSION).$(REVISION) -t-initial $(subst RCS,,$(wildcard *))
checkinsym:
$(CI) -I -NV$(VERSION)_$(REVISION) -r -t-initial $(subst RCS,,$(wildcard *))
checkout:
$(CO) -l $(filter-out Makefile%,$(subst RCS/,,$(wildcard RCS/*)))
##############################################################################
#
# make the object directory
#
$(OBJDIR):
$(MKDIR) $(OBJDIR)